@card-height: calc(100% - 42px - 13px); //左右卡片内容高度定义 目前卡片为等高

//基本信息
._basic_info {
    padding: 21px 7px 0px 12px;

    //第一行
    ._basic_row1 {
        display: flex;
        width: 100%;

        ._item1 {
            width: 128px;
            height: 125px;
            background: url('/assets/images/homepage/communtity/basicimg.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        ._item2 {
            width: calc(100% - 128px);
            height: 125px;
            padding-left: 20px;

            ._basictitlebg {
                background: url('/assets/images/homepage/communtity/basictitlebg.png');
                background-repeat: no-repeat;
                background-size: 100% 100%;
                width: 100%;
                height: 17.5px;
                display: flex;
                flex-direction: row;
                justify-content: space-around;
                align-items: center;

                ._basic_title {
                    font-family: YouSheBiaoTiHei;
                    font-size: 21px;
                    color: #FFFFFF;
                    letter-spacing: 0.74px;
                    width: 70px;
                    margin-top: -13px;
                }

                ._basic_sub_title {
                    font-family: YouSheBiaoTiHei;
                    font-size: 14px;
                    color: #C0E2FF;
                    letter-spacing: 0;
                }
            }

            ._basic_text {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                padding-bottom: 14px;
                border-bottom: 1px solid #c3e6ff69;
                font-size: 14px;
                color: #C0E2FF;
                margin-top: 14px;
                padding-left: 5px;
                padding-right: 5px;

                ._text_number_color {
                    font-family: D-DIN-Italic;
                    font-weight: DIN;
                    font-size: 16px;
                    color: #FFFFFF;
                    letter-spacing: 0.5px;
                }
            }
        }
    }

    //第二行
    ._basic_row2 {
        width: 100%;
        display: flex;
        font-family: SourceHanSansCN-Medium;
        font-weight: 500;
        font-size: 13px;
        color: #C0E2FF;
        letter-spacing: 0;
        margin-top: 19px;
        background: url('/assets/images/homepage/communtity/basictextbg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        height: 43px;
        align-items: center;

        ._item1 {
            width: 50%;
            display: flex;
            justify-content: space-around;
        }

        ._item2 {
            width: calc(50% - 1px);
            display: flex;
            justify-content: space-around;
        }

        .basicinterval {
            background: url('/assets/images/homepage/communtity/basicinterval.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
            width: 1px;
            height: 19px;
        }

        ._number {
            font-family: YouSheBiaoTiHei;
            font-size: 16px;
            color: #FFFFFF;
            letter-spacing: 0;
            text-align: right;
        }
    }
}

//人口动态
._person_trends {
    display: flex;
    padding: 10px 18px 0px 10px;
    height: 100%;

    ._person_tends_item1 {
        width: 123.5px;
        height: 100%;
        background: url('/assets/images/homepage/communtity/person.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    ._person_tends_item2 {
        width: calc(100% - 123.5px);
        padding-left: 21px;
        padding-top: 22px;

        ._person_text {
            margin-bottom: 10%;
            background: url('/assets/images/homepage/communtity/personbg.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
            width: 100%;
            height: 15px;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            padding-left: 10px;
            padding-right: 8px;
            font-family: YouSheBiaoTiHei;
            font-size: 12px;
            color: #C0E2FF;
            letter-spacing: 0;

            ._person_title {
                width: 100px;
                font-family: YouSheBiaoTiHei;
                font-size: 16px;
                color: #FFFFFF;
                letter-spacing: 0.56px;
                margin-top: -11px;
            }

            ._person_number {
                width: calc(100% - 150px);
                height: 28px;
                font-family: D-DIN-Italic;
                font-weight: Italic;
                font-size: 28px;
                color: #24DCF7;
                letter-spacing: 0.98px;
                margin-top: -37px;
                text-align: right;
            }

        }
    }
}

//基础设施
._basic_device {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    align-items: center;

    ._device_item {
        width: 50%;
        height: 82px;
        display: flex;

        ._device_img1 {
            width: 93.12px;
            height: 82px;
            background: url('/assets/images/homepage/communtity/smoke.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        ._device_img2 {
            width: 93.12px;
            height: 82px;
            background: url('/assets/images/homepage/communtity/temp.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        ._device_img3 {
            width: 93.12px;
            height: 82px;
            background: url('/assets/images/homepage/communtity/video.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        ._device_img4 {
            width: 93.12px;
            height: 82px;
            background: url('/assets/images/homepage/communtity/lift.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        ._device_text {
            color: #ECF7FF;
            width: calc(100% - 94px);
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;

            ._device_number {
                font-family: D-DIN-Italic;
                font-weight: Italic;
                font-size: 28px;
                color: #29E4FF;
                letter-spacing: 0;
            }
        }
    }
}

//特殊人群统计
._special {
    height: 100%;
    padding-left: 16px;
    padding-right: 9px;

    ._special_item {
        height: 19%;
        margin-bottom: 0.6%;
        display: flex;
        font-family: YouSheBiaoTiHei;
        font-size: 18px;
        color: #ECF7FF;
        letter-spacing: 0.4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 3%;
        padding-left: 15%;

        ._number {
            font-family: D-DIN-Italic;
            font-weight: Italic;
            font-size: 26px;
            color: #24DCF7;
            letter-spacing: 0;
        }
    }

    ._special_bg1 {
        background: url('/assets/images/homepage/communtity/special1.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    ._special_bg2 {
        background: url('/assets/images/homepage/communtity/special2.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
}

//小区人流量排名
._traffic_ranking {
    height: 100%;
    padding: 11px;

    ._rank_title {
        height: 34.64px;
        background: url('/assets/images/homepage/communtity/ranktitle.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        color: #FFFFFF;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: space-around;

        ._rank_item1 {
            text-align: center;
            width: 20%;
        }

        ._rank_item2 {
            text-align: center;
            width: 50%;
        }

        ._rank_item3 {
            text-align: center;
            width: 30%;
        }
    }

    .rank_content_overflow {
        height: calc(100% - 35px);
        overflow: auto;
    }

    ._rank_content {
        margin-top: 12px;
        height: 34.64px;
        background: url('/assets/images/homepage/communtity/rankcontent.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        color: #E2F8FF;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-around;

        ._rank_item1 {
            text-align: center;
            width: 20%;
        }

        ._rank_item2 {
            text-align: center;
            width: 50%;
        }

        ._rank_item3 {
            text-align: center;
            width: 30%;
        }
    }

    .topbg1 {
        width: 28px;
        height: 10px;
        background: url('/assets/images/homepage/communtity/top1.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline-block;
    }

    .topbg2 {
        width: 28px;
        height: 10px;
        background: url('/assets/images/homepage/communtity/top2.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline-block;
    }

    .topbg3 {
        width: 28px;
        height: 10px;
        background: url('/assets/images/homepage/communtity/top3.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        display: inline-block;
    }

}

.rank_content_overflow::-webkit-scrollbar {
    width: 0 !important
}

//城市安全
._city_safty {
    font-family: SourceHanSansCN-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #E2F8FF;
    letter-spacing: 1.17px;
    line-height: 19px;
    // padding: 20px 14px 0px 14px;
    overflow: auto;
    // height: 100%;
    padding-top: 20px;
    padding-left: 12px;

    .alarm_handle {
        display: flex;
        height: 89px;
        margin-bottom: 20px;

        .handle_img {
            width: 101px;
            height: 89px;
            background: url('/assets/images/homepage/communtity/alarm2.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .alarm_content {
            width: calc(100% - 120px);
            display: flex;
            flex-direction: column;
            justify-content: center;

            .alarm_text {
                padding-left: 16px;
                padding-right: 16px;
            }
        }

    }

    .alarm_unhandle {
        display: flex;
        height: 89px;
        margin-bottom: 20px;

        .handle_img {
            width: 101px;
            height: 89px;
            background: url('/assets/images/homepage/communtity/alarm1.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .alarm_content {
            width: calc(100% - 120px);
            display: flex;
            flex-direction: column;
            justify-content: center;

            .alarm_text {
                padding-left: 16px;
                padding-right: 16px;
            }
        }
    }

    .alarm_bg {
        height: 17px;
        width: 100%;
        background: url('/assets/images/homepage/communtity/alarmbg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        margin-bottom: 7px;
        padding-left: 7px;
        padding-right: 6px;

        .alarm_title1 {
            float: left;
            margin-top: -10px;
            font-family: D-DIN-Italic;
            font-weight: Italic;
            font-size: 16px;
            color: #FFFFFF;
            letter-spacing: 0;
            width: 75%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .alarm_title2 {
            float: right;
            margin-top: -10px;
            font-family: YouSheBiaoTiHei;
            font-size: 16px;
            color: #FFFFFF;
            letter-spacing: 0;
        }

        .arrow {
            display: inline-block;
            margin-left: 2px;
            width: 10px;
            height: 10px;
        }
    }

    .notice_list {
        display: flex;
        height: 89px;
        margin-bottom: 20px;

        .notice_img {
            width: 101px;
            height: 89px;
            background: url('/assets/images/homepage/communtity/notice.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
        }

        .notice_content {
            width: calc(100% - 120px);
            display: flex;
            flex-direction: column;
            justify-content: center;

            .notice_text {
                padding-left: 16px;
                padding-right: 16px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2; // 控制多行的行数
                -webkit-box-orient: vertical;
            }
        }
    }

    .pointer {
        cursor: pointer;
    }
}

.video-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;

    .video-wrapper {
        width: 100%;
        height: 100%;
        position: relative;

        .video-player {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-indicators {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;

            .indicator {
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.5);
                cursor: pointer;
                transition: all 0.3s ease;

                &:hover {
                    background: rgba(255, 255, 255, 0.8);
                }

                &.active {
                    background: #fff;
                    transform: scale(1.2);
                }
            }
        }
    }

    .no-video {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
    }
}